package com.lizhi.yun.core.controller;/**
 * @program: sfrobot-html
 * @name StandPrescriptionInfoController
 * @description:
 * @author: lizhi
 * @create: 2020-05-15 14:23
 */

import com.lizhi.common.yun.entity.ListResponseResult;
import com.lizhi.yun.core.handler.ServicePrescriptionInfoHandler;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 *@program: sfrobot-html
 *@name StandPrescriptionInfoController
 *@description:
 *@author: lizhi
 *@create: 2020-05-15 14:23
 */
@RefreshScope
@RestController
@RequestMapping(path = "/api/stand/yun/prescription")
@Api("处方信息")
public class StandPrescriptionInfoController {

    @Resource
    private ServicePrescriptionInfoHandler standPrescriptionInfoHandler;

    @ApiOperation("通过map查询处方信息")
    @PostMapping(path = "/doMain")
    public ListResponseResult doMain(@RequestBody String json) {
        return standPrescriptionInfoHandler.doMain(json);
    }

    @ApiOperation("通过preId查询处方信息")
    @PostMapping(path = "/selectById")
    public ListResponseResult selectById(@RequestBody String json){
        return standPrescriptionInfoHandler.selectById(json);
    }

}
